package com.example.problem1.api.impl;

import com.example.problem1.api.DemoFactory;
import com.example.problem1.entity.Demo;

public class AutowireFactory implements DemoFactory {

    @Override
    public Demo createDemo() {
        Demo demo = new Demo();
        demo.setId(3L);
        demo.setName("AutowireFactory装配");
        return demo;
    }
}
